package com.sumainfor.wx.tenant.controller.Schedul;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.service.WechatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author Meng
 * @ClassName SchedulTenController
 * @date 2019/12/29 14:38
 * @description: TODO
 */
@Controller
@RequestMapping("/provider/key/tenant/schedulten")
public class SchedulTenController {

    @Autowired
    WechatService wechatService;

    @ResponseBody
    @PostMapping("/getTenOpenId")
    public JsonResult getTenOpenId(@RequestBody  Map<String,Object> params){

        JsonResult result = new JsonResult();
        return result.put(wechatService.getTenOpenId(params));
    }

}
